package com.spzx.product.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;

@Schema(description = "商品分类VO")
@Data
public class CategoryVo {

    @Schema(description = "分类id")
    private Long id;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "图标地址")
    private String imageUrl;

    @Schema(description = "上级分类id")
    private Long parentId;


    @Schema(description = "子类别")
    private List<CategoryVo> children = new ArrayList<>();
}
